DTInstall
DTInstall Add a task to the deferred task queue
#include <OSUtils.h> Deferred Tsk Mgr
OSErr DTInstall(dtTaskPtr );
QElemPtr dtTaskPtr ; address of a task for loading into the queue
returns queue-related Error Code; 0=no error
DTInstall adds a task identified by a pointer to the deferred task queue.
dtTaskPtr is a pointer leading to data to be en queued.
Returns: an OSErr; an integer Error Code. It will be one of:
noErr (0) No error
vTypeErr (-2) Invalid queue element

Notes: DTInstall adds a lengthy task to a deferred task queue so that it can be
executed when all interrupts at the current interrupt level have been
serviced. These tasks are executed with interrupts enabled, but are subject
to the same restrictions regarding moving memory and preserving
registers as interrupt routines. The QElemPtr referenced by the dtTaskPtr
points to a DeferredTask record, which itself contains a pointer to the
task you want to add to the queue.
Most of the long tasks for which this call is best suited are initiated by
add-in cards. You would generally need this call, therefore, only if your
program has to deal with these kinds of interrupts.